<?php
namespace app\home\controller;

use app\common\controller\HomeBase;  // model
use think\Db;                       // db
use app\common\model\Qualifications as QualificationsModel;

class Qualifications extends HomeBase
{

    /*
     *
     * */


    public function index($id)
    {
        $article = new QualificationsModel();
        $result = $article->showOneArticle($id);
        $photos = unserialize($result[0]['photo']);
        $title_array = array(
            'title'     => '资质'
        );
        $this->assign('title',$title_array);
        $this->assign('results',$result);
        $this->assign('photos',$photos);
        return $this->fetch();
    }
}
